<template>
	<view>
		<u-sticky bgColor="#fff">
			<u-tabs :list="tab" lineColor="#aaeaea" :activeStyle="{color:'#75c3c5'}" :is-scroll="false"
				:scrollable="false"></u-tabs>
		</u-sticky>
		<view class="data_info_box">
			<view class="data_info_list" v-for="a in 5" :key="a">
				<text class="time">2023-02</text>
				<view class="data_info">
					<view class="data_info_end">
						<text>交易笔数(笔)</text>
						<text>163</text>
					</view>
					<view class="data_info_end">
						<text>我的商户交易总额(元)</text>
						<text>0</text>
					</view>
					<view class="data_info_end">
						<text>我的商户交易总额(元)</text>
						<text>0</text>
					</view>
					<view class="data_info_end">
						<text>我的商户交易总额(元)</text>
						<text>0</text>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				tab: [{
						name: '月明细'
					},
					{
						name: '日明细'
					}
				]
			}
		},
		methods: {
			data_detailed() {
				uni.navigateTo({
					url: '/pages/data/transaction/data_detailed'
				})
			}

		}
	}
</script>

<style lang="scss" scoped>
	.data_info_box {
		padding: 30rpx;

		.data_info_list {
			.time {
				font-size: 28rpx;
				color: #666666;
			}

			.data_info {
				margin: 15rpx 0 30rpx 0;
				border-radius: 15rpx;
				box-shadow: 7px 0px 30px -18px #888888;
				display: flex;
				flex-direction: column;
				padding: 30rpx 0 10rpx 0;

				.data_info_end {
					display: flex;
					align-items: center;
					justify-content: space-between;
					padding: 0 30rpx;
					margin-bottom: 20rpx;
					box-sizing: border-box;

					text {
						font-size: 28rpx;
						color: #333;
					}
				}
			}
		}
	}
</style>
